﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="MeasurementInfo.aspx.cs" Inherits="Page_MeasurementInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <script type="text/javascript">
    function showdialog(SuperiorID, id) {
        var arguments = new Array(SuperiorID, id);
        var m = window.showModalDialog("MeasurementInfoEdit.aspx?sid=" + SuperiorID + "&id=" + id, "dialogHeight:400px,center:yes,resizable:no,status:no");
        if (m != null) {
            //window.location .reload (); 
            document.getElementById("<%=HiddenField2.ClientID %>").value = "1";
            window.location.href = window.location.href;
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div align="center" style="font-size: x-large">
        测温点管理</div>
    <table style="width: 100%;">
        <tr>
            <td width="30%" align="left" style="vertical-align:top">
                <asp:TreeView ID="TreeView1" runat="server" ShowLines="True" 
                    onselectednodechanged="TreeView1_SelectedNodeChanged">
                    <SelectedNodeStyle BorderColor="Red" BorderStyle="Dotted" Font-Bold="True" 
                        ForeColor="#CC3300" Height="25px" />
                </asp:TreeView>             
                <asp:HiddenField ID="HiddenField1" runat="server" />
            </td>
            <td style="vertical-align:top">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                <br />
                <asp:Button ID="Button1" runat="server" Text="添加测温点" />
                <br />
                <br />
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    onrowediting="GridView1_RowEditing" 
                    onrowdatabound="GridView1_RowDataBound" onrowdeleting="GridView1_RowDeleting">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" />
                        <asp:BoundField DataField="Name" HeaderText="名称" />
                        <asp:BoundField DataField="CallNum" HeaderText="呼叫号" />
                        <asp:BoundField DataField="Telephone" HeaderText="联系电话" />
                        <asp:BoundField DataField="Address" HeaderText="地址" />
                        <asp:ButtonField Text="编辑" />
                        <asp:CommandField InsertVisible="False" ShowCancelButton="False" 
                            ShowDeleteButton="True" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>                               
                <br />
                <asp:HiddenField ID="HiddenField2" runat="server" />
            </td>
        </tr>
    </table>  
</asp:Content>

